Skip to content

feat: support public zoci api for package metadata - #5097

Draft
brandtkeller wants to merge 5 commits into
mainfrom
5096_remote_root_descriptors
Draft

feat: support public zoci api for package metadata#5097
brandtkeller wants to merge 5 commits into
mainfrom
5096_remote_root_descriptors

Conversation

@brandtkeller

@brandtkeller brandtkeller commented Jul 23, 2026

Copy link
Copy Markdown
Member

Description

Exploring a discussion and issue around a few topics. First being a public api for the package metadata. Second being underlying exported and non-exported improvements to zoci in support of ensuring that mutable tags don't introduce drift between logical handling.

This also fixes some areas of the code where multiple remotes were used where there should have only been one - as well as not being susceptible to the drift.

Related Issue

Fixes #5096

Relates to #

Checklist before merging

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for zarf-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 8187720
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6a639e61935a6400089967cc

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 52.70270% with 35 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/zoci/fetch.go 37.50% 11 Missing and 4 partials ⚠️
src/pkg/zoci/common.go 69.56% 5 Missing and 2 partials ⚠️
src/pkg/packager/load/import.go 33.33% 6 Missing ⚠️
src/pkg/zoci/utils.go 62.50% 4 Missing and 2 partials ⚠️
src/pkg/packager/pull.go 50.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/pkg/packager/pull.go 50.73% <50.00%> (+0.49%) ⬆️
src/pkg/packager/load/import.go 54.97% <33.33%> (+1.71%) ⬆️
src/pkg/zoci/utils.go 63.04% <62.50%> (-0.29%) ⬇️
src/pkg/zoci/common.go 71.73% <69.56%> (-3.27%) ⬇️
src/pkg/zoci/fetch.go 37.50% <37.50%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@brandtkeller brandtkeller changed the title 5096 remote root descriptors feat: support public zoci api for package metadata Jul 23, 2026
@brandtkeller
brandtkeller marked this pull request as ready for review July 23, 2026 04:41
@brandtkeller
brandtkeller requested review from a team as code owners July 23, 2026 04:41
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@brandtkeller

Copy link
Copy Markdown
Member Author

Moving to draft - this may be a good candidate to shift up to the defenseunicorns/pkg/oci domain...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Support fetching a package digest and metadata from the same OCI manifest

1 participant